package com.zed.api.useradmin;

/**
 * 身份证号无效时抛出的例外
 * @author Zed
 *
 */
public class InvalidIdentityIdException extends AccountException {

	private static final long serialVersionUID = -279607055435781514L;

	private String identityId;
	
	/**
	 * 
	 */
	protected InvalidIdentityIdException() {
		
	}

	/**
	 *
	 * @param identityId
	 */
	public InvalidIdentityIdException(String identityId) {
		super("identityId is invalidate: identityId=\"" + identityId + "\".");
		this.identityId = identityId;
	}

	public String getIdentityId() {
		return this.identityId;
	}
	
	@Override
	public String getLocalizedMessage() {
		return String.format("无效的身份证号[%s]", this.getIdentityId());
	}
}
